package com.car.service;

import com.car.entity.Image;
import com.car.entity.User;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface UserService<T> {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    User selectByPrimaryKey(Integer userId);

    List<T> selectAll();

    int updateByPrimaryKey(User record);
    
    User logins(String phone,String pwd);
    
    int h5register(User user);
    
    int updUserInfo(User user,Image image);
    
    int updUserPwd(String userPwd,Integer userId);
    
    int updUsersTojinji(String emergencyContacts ,String contactNumber,int userId);
    
    int updUsersEmail(String email,Integer userId);
    
    int updVip(Integer vipId,Integer userId);
    
    User adminLogin(User user);
    
    List<User> selectUser();
}